export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  align: 'center',
  indexWidth: 80,
  indexLabel: '编号',
  menuWidth:300,
  // labelWidth:150,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "租户ID",
      prop: "tenantId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "创建部门",
      prop: "createDept",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "是否已删除",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "分组名称",
      prop: "name",
      type: "input",
      slot:true,
      rules: [
        {
          required: true,
          message: '请输入分组名称',
          trigger: 'blur',
        },
      ],
    },
    {
      label: "所属业务",
      prop: "trial",
      type: "input",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      display: false,
    },
    {
      label: "病例数量",
      prop: "caseNum",
      min: 1,
      // max: 2,
      value:0,
      type: 'number',
      rules: [
        {
          required: true,
          message: '请输入病例数量',
          trigger: 'blur',
        },
      ],
      // disabled: false,
    },
    {
      label: "采集顺序",
      prop: "collectionSequence",
      type: 'select',
      dicUrl: '/api/blade-system/dict-biz/dictionary?code=collection_sequence',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      },
      filterable: true,
      overHidden: true,
      // disabled: false,
    },
    {
      label: "分组描述",
      prop: "description",
      type: 'textarea',
      minRows: 3,
      maxRows: 5,
      maxlength: 150,
      showWordLimit: true,
      overHidden: true,
      span:24,
    },
    {
      label: "部门病例数量",
      prop: "deptCaseNums",
      type: 'input',
      filterable: true,
      overHidden: true,
      span:24,
      labelWidth: 100,
      hide:true,
      display:true,
    },
    {
      label: "业务Id",
      prop: "trial",
      type: 'input',
      filterable: true,
      overHidden: true,
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      display: false,
      hide:true,
      // slot:true,
      // rules: [
      //   {
      //     required: true,
      //     message: '请输入部门病例数量',
      //     trigger: 'blur',
      //   },
      // ],
    },
    // {
    //   label: '部门病例数量',
    //   prop: 'deptCaseNums',
    //   type: 'dynamic',
    //   labelWidth: 100,
    //   span: 24,
    //   hide:true,
    //   children: {
    //     index: false,
    //     align: 'center',
    //     type: 'form',
    //     headerAlign: 'center',
    //     rowAdd: (done) => {
    //       // ElMessage.success('新增回调'); // 使用 ElMessage
    //       done({ input: '默认值' });
    //     },
    //     rowDel: (row, done) => {
    //       // ElMessage.success('删除回调' + JSON.stringify(row)); // 使用 ElMessage
    //       done();
    //     },
    //     column: [
    //       {
    //         label: "",
    //         prop: "deptName",
    //         type: 'input',
    //       },
    //       {
    //         label: "",
    //         prop: "deptId",
    //         type: 'input',
    //         display: false,
    //       },
    //       {
    //         label: "数量",
    //         prop: "num",
    //         type: 'input',
    //       },
    //     ]
    //   }
    // }
  ]
}
